// eslint-disable-next-line strict

module.exports=app=>{
    console.log(555,app)
    // 中台路由守护
    const {router,controller} = app
    var adminauth = app.middleware.adminauth()
    // controller/admin/main 路径找到包名index
    router.get('/admin/index',adminauth,controller.admin.main.index)
    router.post('/admin/checkLogin',controller.admin.main.checkLogin)
    router.get('/admin/getTypeInfo',adminauth,controller.admin.main.getTypeInfo)
    router.post('/admin/addArticle',adminauth,controller.admin.main.addArticle)
    router.post('/admin/updateArticle',adminauth,controller.admin.main.updateArticle)
    router.post('/admin/getArticleList',adminauth,controller.admin.main.getArticleList)


}